<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/12
 * Time: 10:23
 */

namespace app\admin\model;


use think\Model;

class ReportLog extends Model
{
    protected $table = 'report_log';

    public function setVoteChannelAttr($value){
        return empty($value)?'':json_encode($value,JSON_UNESCAPED_UNICODE);
    }

    public function getVoteChannelAttr($value){
        return empty($value)?[]:json_decode($value,true);
    }

    public function setVotePassWayAttr($value){
        return empty($value)?'':json_encode($value,JSON_UNESCAPED_UNICODE);
    }

    public function getVotePassWayAttr($value){
        return empty($value)?[]:json_decode($value,true);
    }

    public function setSeriesAttr($value){
        return empty($value)?'':json_encode($value,JSON_UNESCAPED_UNICODE);
    }

    public function getSeriesAttr($value){
        return empty($value)?[]:json_decode($value,true);
    }

    public function setParticipantChannelAttr($value){
        return empty($value)?'':json_encode($value,JSON_UNESCAPED_UNICODE);
    }

    public function getParticipantChannelAttr($value){
        return empty($value)?[]:json_decode($value,true);
    }

    public function setParticipantPassWayAttr($value){
        return empty($value)?'':json_encode($value,JSON_UNESCAPED_UNICODE);
    }

    public function getParticipantPassWayAttr($value){
        return empty($value)?[]:json_decode($value,true);
    }

    public function setTimeAttr($value){
        return empty($value)?'':json_encode($value,JSON_UNESCAPED_UNICODE);
    }

    public function getTimeAttr($value){
        return empty($value)?[]:json_decode($value,true);
    }
}